package cn.com.haopy.yue.ai.db.entity.arisk;

import cn.com.haopy.yue.ai.db.entity.BaseEntity;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.apache.ibatis.type.JdbcType;

import javax.validation.constraints.NotNull;

/**
 * @Description: TODO
 * @Author DuTao
 * @Date 2025/3/26 9:05
 */
@Data
@TableName(value = "arisk_standard_category", autoResultMap = true)
@ApiModel(value = "收费标准分类")
public class AIRiskStandardCategory extends BaseEntity {

    @ApiModelProperty(value = "上一级ID")
    @TableField(value = "p_id", jdbcType = JdbcType.INTEGER)
    @NotNull(message = "上一级ID不能为空")
    private Integer pid;

    @ApiModelProperty(value = "收费标准ID")
    @TableField(value = "charge_id", jdbcType = JdbcType.INTEGER)
    private Integer chargeId;

    @ApiModelProperty(value = "分类名称")
    @TableField(value = "name", jdbcType = JdbcType.VARCHAR)
    private String name;

    @ApiModelProperty(value = "排序")
    @TableField(value = "sort_index", jdbcType = JdbcType.INTEGER)
    private Integer sortIndex;

    @ApiModelProperty(value = "是否是叶子")
    @TableField(value = "is_leaf", jdbcType = JdbcType.BIT)
    private Boolean isLeaf;


}
